package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.DaysTag;
import cn.wolfcode.luowowo.article.domain.FestivalTag;
import cn.wolfcode.luowowo.article.domain.MonthTag;
import cn.wolfcode.luowowo.article.domain.ThemeTag;
import cn.wolfcode.luowowo.article.mapper.DaysTagMapper;
import cn.wolfcode.luowowo.article.mapper.FestivalTagMapper;
import cn.wolfcode.luowowo.article.mapper.MonthTagMapper;
import cn.wolfcode.luowowo.article.mapper.ThemeTagMapper;
import cn.wolfcode.luowowo.article.service.IDestinationSearchTagService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class DestinationSearchTagServiceImpl implements IDestinationSearchTagService {
    @Autowired
    private MonthTagMapper monthTagMapper;
    @Autowired
    private FestivalTagMapper festivalTagMapper;
    @Autowired
    private ThemeTagMapper themeTagMapper;
    @Autowired
    private DaysTagMapper daysTagMapper;

    @Override
    public List<MonthTag> listMonthTags() {
        List<MonthTag> monthTags = monthTagMapper.selectAll();
        return monthTags;
    }

    @Override
    public List<FestivalTag> listFestivalTags() {
        List<FestivalTag> festivalTags = festivalTagMapper.selectAll();
        return festivalTags;
    }

    @Override
    public List<ThemeTag> listThemeTags(Long parentId) {
        return themeTagMapper.selectByParentId(parentId);
    }

    @Override
    public List<DaysTag> listDaysTags() {
        List<DaysTag> daysTags = daysTagMapper.selectAll();
        return daysTags;
    }
}
